/*
Copyright 2010  Murali Devi (profdevi@gmail.com)

This file is part of ComineGL Project.

ComineGL is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ComineGL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with ComineGL.  If not, see <http://www.gnu.org/licenses/>.

This code uses the irrlicht and irrklang libraries.  Please read
the libraries copyrights at 

	irrlicht library:  http://irrlicht.sourceforge.net
	irrklang library:  http://www.ambiera.com/irrklang

*/



//v0.16 copyright Comine.com 20110925U18
#ifndef ComineGL_h
#define ComineGL_h

/////////////////////////////////////////////////
#include "ComineGLDefines.h"
#include "ComineGLTexture.h"
#include "ComineGLNode.h"
#include "ComineGLSound.h"
#include "ComineGLTask.h"
#include "ComineGLInput.h"
#include "ComineGLMesh.h"
#include "ComineGLFont.h"
#include "ComineGLAnimation.h"
#include "ComineGLAnimator.h"
#include "ComineGLTriset.h"
#include "ComineGLArrayInt.h"
#include "ComineGLWindow.h"
#include "ComineGLMaterial.h"
#include "ComineGLCamera.h"
#include "ComineGLAction.h"


//////////////////////////////////////////////////////
MDLLFUN const char *CGLGetVersion(void);						// Returns the version of ComineGL Library
MDLLFUN bool CGLCreate(int width,int height,int bpp,bool fullscreen);
MDLLFUN bool CGLDestroy(void);
MDLLFUN bool CGLGameLoop(void);
MDLLFUN bool CGLGameLoopBreak(void);
MDLLFUN bool CGLZipFileAdd(const char *zipfile);
MDLLFUN bool CGLPrintStatus(void);
MDLLFUN bool CGLKeyboardSetHandler(bool keyhandler(int keycode)=0);
MDLLFUN unsigned int CGLTimeGet(void);							// Get Library Time 

//////////////////////////////////////////////////////
// Simpify Construction/Destruction of Library
class CGLEngine
	{
	public:
	//////////////////////////////////////////
	inline CGLEngine(int width,int height,int bpp=32,bool fullscreen=false)
		{
		CGLCreate(width,height,bpp,fullscreen);
		}

	//////////////////////////////////////////
	inline ~CGLEngine(void)
		{
		CGLDestroy();
		}

	//////////////////////////////////////////
	inline bool GameLoop(void)
		{
		return CGLGameLoop();
		}
	};


///////////////////////////////////////////////////
// Simple defines to help with initialization
#define CGLInit(x,y,fullscreen)		CGLEngine _CGL_Engine_Variable((x),(y),32,(fullscreen))


#endif // ComineGL_h
